// 登录模块
import type { IPageQuery } from '@/api/interface'

export namespace IUser {
  export interface Query extends IPageQuery {
    username?: string
    phone?: string
    accountStatusCd?: string
    startDate?: string
    endDate?: string
    nickName?: string
    deptId?: number
    isThisDeep?: boolean
  }

  export interface Form {
    id?: number
    username?: string
    personNo: string
    deptId: number
    postIdList: number[]
    nickName: string
    sex: number
    mobile: string
    email: string
    idCard: string
    birthday: string
    accountStatusCd: string
    userTagCd: string
    avatar: string
  }

  export interface Info {
    id?: number
    deptId: number
    personNo: string
    username: string
    nickName: string
    userType: string
    email: string
    mobile: string
    phone: string
    idCard: string
    avatar: string
    birthday: string
    sex: number
    accountStatusCd: string
    userTagCd: string
    loginIp: string
    loginDate: string
    createTime: string
    updateTime: string
    remark: string
    dept: DeptInfo
    roleList: RoleInfo[]
    postList: PostInfo[]
  }

  export interface DeptInfo {
    id: number
    pid: number
    deptName: string
    leader: string
    mobile: string
    email: string
  }

  export interface PostInfo {
    id: number
    postCode: string
    postName: string
  }

  export interface RoleForm {
    roleIds: number[]
    userId: number
  }

  export interface RoleData {
    selectIds: number[]
    roleInfoVOS: RoleInfo[]
  }

  export interface RoleInfo {
    id: number
    roleName: string
    dataScope: string
  }

  export interface PasswordForm {
    oldPwd: string
    newPwd: string
  }
}
